Auth

package
v0.0.0-...-44a09f9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host        string
	TalkService string
	PollService string
	UserAgent   string
	LINEApp     string
	AccessToken string
}

type LINEClient

type LINEClient struct {
	Profile *Service.Profile

	TalkServiceClient *ThriftClient
	PollServiceClient *ThriftClient

	Talk *Service.TalkServiceClient
	Poll *Service.TalkServiceClient
}

func NewLINEClient

func NewLINEClient(config Config) (*LINEClient, error)

type ThriftClient

type ThriftClient struct {
	StandardClient *thrift.TStandardClient
	// contains filtered or unexported fields
}

func NewThriftClient

func NewThriftClient(url string) (*ThriftClient, error)

func (*ThriftClient) DelHeader

func (tc *ThriftClient) DelHeader(key string)

func (*ThriftClient) SetHeader

func (tc *ThriftClient) SetHeader(key, value string)

Jump to

Keyboard shortcuts

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