jwtrpcdeclare

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusData_Status_name = map[int32]string{
	0: "SUCCEED",
	1: "ERROR",
}
View Source
var StatusData_Status_value = map[string]int32{
	"SUCCEED": 0,
	"ERROR":   1,
}

Functions

func RegisterJwtServiceServer

func RegisterJwtServiceServer(s *grpc.Server, srv JwtServiceServer)

Types

type JwtServiceClient

type JwtServiceClient interface {
	Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
	Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error)
}

JwtServiceClient is the client API for JwtService service.

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

func NewJwtServiceClient

func NewJwtServiceClient(cc *grpc.ClientConn) JwtServiceClient

type JwtServiceServer

type JwtServiceServer interface {
	Sign(context.Context, *SignRequest) (*SignResponse, error)
	Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
}

JwtServiceServer is the server API for JwtService service.

type SignRequest

type SignRequest struct {
	Jsondata             []byte   `protobuf:"bytes,1,opt,name=jsondata,proto3" json:"jsondata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignRequest) Descriptor

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

func (*SignRequest) GetJsondata

func (m *SignRequest) GetJsondata() []byte

func (*SignRequest) ProtoMessage

func (*SignRequest) ProtoMessage()

func (*SignRequest) Reset

func (m *SignRequest) Reset()

func (*SignRequest) String

func (m *SignRequest) String() string

func (*SignRequest) XXX_DiscardUnknown

func (m *SignRequest) XXX_DiscardUnknown()

func (*SignRequest) XXX_Marshal

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

func (*SignRequest) XXX_Merge

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

func (*SignRequest) XXX_Size

func (m *SignRequest) XXX_Size() int

func (*SignRequest) XXX_Unmarshal

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

type SignResponse

type SignResponse struct {
	Status               *StatusData `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Data                 string      `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*SignResponse) Descriptor

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

func (*SignResponse) GetData

func (m *SignResponse) GetData() string

func (*SignResponse) GetStatus

func (m *SignResponse) GetStatus() *StatusData

func (*SignResponse) ProtoMessage

func (*SignResponse) ProtoMessage()

func (*SignResponse) Reset

func (m *SignResponse) Reset()

func (*SignResponse) String

func (m *SignResponse) String() string

func (*SignResponse) XXX_DiscardUnknown

func (m *SignResponse) XXX_DiscardUnknown()

func (*SignResponse) XXX_Marshal

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

func (*SignResponse) XXX_Merge

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

func (*SignResponse) XXX_Size

func (m *SignResponse) XXX_Size() int

func (*SignResponse) XXX_Unmarshal

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

type StatusData

type StatusData struct {
	Status               StatusData_Status `protobuf:"varint,1,opt,name=status,proto3,enum=jwtrpcdeclare.StatusData_Status" json:"status,omitempty"`
	Msg                  string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*StatusData) Descriptor

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

func (*StatusData) GetMsg

func (m *StatusData) GetMsg() string

func (*StatusData) GetStatus

func (m *StatusData) GetStatus() StatusData_Status

func (*StatusData) ProtoMessage

func (*StatusData) ProtoMessage()

func (*StatusData) Reset

func (m *StatusData) Reset()

func (*StatusData) String

func (m *StatusData) String() string

func (*StatusData) XXX_DiscardUnknown

func (m *StatusData) XXX_DiscardUnknown()

func (*StatusData) XXX_Marshal

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

func (*StatusData) XXX_Merge

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

func (*StatusData) XXX_Size

func (m *StatusData) XXX_Size() int

func (*StatusData) XXX_Unmarshal

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

type StatusData_Status

type StatusData_Status int32
const (
	StatusData_SUCCEED StatusData_Status = 0
	StatusData_ERROR   StatusData_Status = 1
)

func (StatusData_Status) EnumDescriptor

func (StatusData_Status) EnumDescriptor() ([]byte, []int)

func (StatusData_Status) String

func (x StatusData_Status) String() string

type UnimplementedJwtServiceServer

type UnimplementedJwtServiceServer struct {
}

UnimplementedJwtServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedJwtServiceServer) Sign

func (*UnimplementedJwtServiceServer) Verify

type VerifyRequest

type VerifyRequest struct {
	Tokendata            []byte   `protobuf:"bytes,1,opt,name=tokendata,proto3" json:"tokendata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VerifyRequest) Descriptor

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

func (*VerifyRequest) GetTokendata

func (m *VerifyRequest) GetTokendata() []byte

func (*VerifyRequest) ProtoMessage

func (*VerifyRequest) ProtoMessage()

func (*VerifyRequest) Reset

func (m *VerifyRequest) Reset()

func (*VerifyRequest) String

func (m *VerifyRequest) String() string

func (*VerifyRequest) XXX_DiscardUnknown

func (m *VerifyRequest) XXX_DiscardUnknown()

func (*VerifyRequest) XXX_Marshal

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

func (*VerifyRequest) XXX_Merge

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

func (*VerifyRequest) XXX_Size

func (m *VerifyRequest) XXX_Size() int

func (*VerifyRequest) XXX_Unmarshal

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

type VerifyResponse

type VerifyResponse struct {
	Status               *StatusData `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Data                 []byte      `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*VerifyResponse) Descriptor

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

func (*VerifyResponse) GetData

func (m *VerifyResponse) GetData() []byte

func (*VerifyResponse) GetStatus

func (m *VerifyResponse) GetStatus() *StatusData

func (*VerifyResponse) ProtoMessage

func (*VerifyResponse) ProtoMessage()

func (*VerifyResponse) Reset

func (m *VerifyResponse) Reset()

func (*VerifyResponse) String

func (m *VerifyResponse) String() string

func (*VerifyResponse) XXX_DiscardUnknown

func (m *VerifyResponse) XXX_DiscardUnknown()

func (*VerifyResponse) XXX_Marshal

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

func (*VerifyResponse) XXX_Merge

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

func (*VerifyResponse) XXX_Size

func (m *VerifyResponse) XXX_Size() int

func (*VerifyResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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