Skip to content

Cleanup: tease apart method lookup & server processing. #409

Open
@zenhack

Description

@zenhack

Per discussion in #400 and #405, it would be nice to refactor the sever package a bit, so that method handling is encapsulated in an interface like:

type MethodHandler interface {
    HandleMethod(context.Context, capnp.Method, *Call)
}

...and looking up the particular method in a slice or whatnot is an implementation detail of serverMethods's implementation of HandleMethod(). Low priority, since it's mostly a cleanup thing, but I'd like to do this before we tag 3.0 and thus can't make breaking changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions