mock

package
v1.86.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSimpleServiceServer

func RegisterSimpleServiceServer(s *grpc.Server, srv SimpleServiceServer)

Types

type RepoRequest added in v1.70.0

type RepoRequest struct {
	Repo                 *gitalypb.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*RepoRequest) Descriptor added in v1.70.0

func (*RepoRequest) Descriptor() ([]byte, []int)

func (*RepoRequest) GetRepo added in v1.70.0

func (m *RepoRequest) GetRepo() *gitalypb.Repository

func (*RepoRequest) ProtoMessage added in v1.70.0

func (*RepoRequest) ProtoMessage()

func (*RepoRequest) Reset added in v1.70.0

func (m *RepoRequest) Reset()

func (*RepoRequest) String added in v1.70.0

func (m *RepoRequest) String() string

func (*RepoRequest) XXX_DiscardUnknown added in v1.70.0

func (m *RepoRequest) XXX_DiscardUnknown()

func (*RepoRequest) XXX_Marshal added in v1.70.0

func (m *RepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepoRequest) XXX_Merge added in v1.70.0

func (m *RepoRequest) XXX_Merge(src proto.Message)

func (*RepoRequest) XXX_Size added in v1.70.0

func (m *RepoRequest) XXX_Size() int

func (*RepoRequest) XXX_Unmarshal added in v1.70.0

func (m *RepoRequest) XXX_Unmarshal(b []byte) error

type SimpleRequest

type SimpleRequest struct {
	Value                int32    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SimpleRequest) Descriptor

func (*SimpleRequest) Descriptor() ([]byte, []int)

func (*SimpleRequest) GetValue

func (m *SimpleRequest) GetValue() int32

func (*SimpleRequest) ProtoMessage

func (*SimpleRequest) ProtoMessage()

func (*SimpleRequest) Reset

func (m *SimpleRequest) Reset()

func (*SimpleRequest) String

func (m *SimpleRequest) String() string

func (*SimpleRequest) XXX_DiscardUnknown

func (m *SimpleRequest) XXX_DiscardUnknown()

func (*SimpleRequest) XXX_Marshal

func (m *SimpleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleRequest) XXX_Merge

func (m *SimpleRequest) XXX_Merge(src proto.Message)

func (*SimpleRequest) XXX_Size

func (m *SimpleRequest) XXX_Size() int

func (*SimpleRequest) XXX_Unmarshal

func (m *SimpleRequest) XXX_Unmarshal(b []byte) error

type SimpleResponse

type SimpleResponse struct {
	Value                int32    `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SimpleResponse) Descriptor

func (*SimpleResponse) Descriptor() ([]byte, []int)

func (*SimpleResponse) GetValue

func (m *SimpleResponse) GetValue() int32

func (*SimpleResponse) ProtoMessage

func (*SimpleResponse) ProtoMessage()

func (*SimpleResponse) Reset

func (m *SimpleResponse) Reset()

func (*SimpleResponse) String

func (m *SimpleResponse) String() string

func (*SimpleResponse) XXX_DiscardUnknown

func (m *SimpleResponse) XXX_DiscardUnknown()

func (*SimpleResponse) XXX_Marshal

func (m *SimpleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleResponse) XXX_Merge

func (m *SimpleResponse) XXX_Merge(src proto.Message)

func (*SimpleResponse) XXX_Size

func (m *SimpleResponse) XXX_Size() int

func (*SimpleResponse) XXX_Unmarshal

func (m *SimpleResponse) XXX_Unmarshal(b []byte) error

type SimpleServiceClient

type SimpleServiceClient interface {
	// ServerAccessor is a unary RPC that accesses a server
	ServerAccessor(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error)
	// RepoAccessorUnary is a unary RPC that accesses a repo
	RepoAccessorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// RepoMutatorUnary is a unary RPC that mutates a repo
	RepoMutatorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

SimpleServiceClient is the client API for SimpleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSimpleServiceClient

func NewSimpleServiceClient(cc *grpc.ClientConn) SimpleServiceClient

type SimpleServiceServer

type SimpleServiceServer interface {
	// ServerAccessor is a unary RPC that accesses a server
	ServerAccessor(context.Context, *SimpleRequest) (*SimpleResponse, error)
	// RepoAccessorUnary is a unary RPC that accesses a repo
	RepoAccessorUnary(context.Context, *RepoRequest) (*empty.Empty, error)
	// RepoMutatorUnary is a unary RPC that mutates a repo
	RepoMutatorUnary(context.Context, *RepoRequest) (*empty.Empty, error)
}

SimpleServiceServer is the server API for SimpleService service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL