| 105 | func (DRPCProvisionerDescription) NumMethods() int { return 1 } |
| 106 | |
| 107 | func (DRPCProvisionerDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) { |
| 108 | switch n { |
| 109 | case 0: |
| 110 | return "/provisioner.Provisioner/Session", drpcEncoding_File_provisionersdk_proto_provisioner_proto{}, |
| 111 | func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { |
| 112 | return nil, srv.(DRPCProvisionerServer). |
| 113 | Session( |
| 114 | &drpcProvisioner_SessionStream{in1.(drpc.Stream)}, |
| 115 | ) |
| 116 | }, DRPCProvisionerServer.Session, true |
| 117 | default: |
| 118 | return "", nil, nil, nil, false |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | func DRPCRegisterProvisioner(mux drpc.Mux, impl DRPCProvisionerServer) error { |
| 123 | return mux.Register(impl, DRPCProvisionerDescription{}) |